//package com.chao.java.ai.langchain4j.config;
//
//import com.chao.java.ai.langchain4j.store.MongoChatMemoryStore;
//import dev.langchain4j.memory.ChatMemory;
//import dev.langchain4j.memory.chat.ChatMemoryProvider;
//import dev.langchain4j.memory.chat.MessageWindowChatMemory;
//import lombok.RequiredArgsConstructor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@RequiredArgsConstructor
//public class SeparateChatAssistantConfig {
//
//    private final MongoChatMemoryStore mongoChatMemoryStore;
//
//    @Bean(name = "chatMemoryProvider")
//    public ChatMemoryProvider chatMemoryProvider() {
//        return memoryId -> MessageWindowChatMemory
//                .builder()
//                .id(memoryId)
//                .maxMessages(10)
//                .chatMemoryStore(mongoChatMemoryStore)
//                .build();
//    }
//}
